package com.jman.front.clients;

import com.jman.front.dto.Reply;
import com.jman.front.dto.ReplyToUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("replyservice")
public interface ReplyClient {
    @GetMapping("/reply/getInfo")
    List<ReplyToUser> getReply(@RequestParam("id") Long id);

    @PostMapping("/reply/saveInfo")
    Boolean sendReply(@RequestBody Reply reply);
}
